home *** CD-ROM | disk | FTP | other *** search
-
- #import "NIBNameMatrix.h"
-
- // so it knows about ok:
- #import <apps/InterfaceBuilder.h>
-
- @implementation NIBNameMatrix
-
- - (BOOL)acceptsFirstResponder { return YES; }
-
- - cut:sender
- {
- id aCell, aList = nil;
- int row, col, i;
-
-
- if (![self cellCount])
- { return self;
- }
- aList = [[List alloc] init];
- [self getSelectedCells:aList];
- if ([aList count])
- { for (i = 0; i < [aList count]; i++)
- { aCell = [aList objectAt:i];
- [self getRow:&row andCol:&col ofCell:aCell];
- [self removeRowAt:row andFree:YES];
- }
- }
- else
- { aCell = [self selectedCell];
- [self getRow:&row andCol:&col ofCell:aCell];
- [self removeRowAt:row andFree:YES];
- }
- [self sizeToCells];
- [self display];
- [aList free];
- [theInspector ok:self];
-
- return self;
- }
-
- - setTheInspector:sender { theInspector = sender; return self; }
-
- @end
-